package com.selune.online.ordering.system.project.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serializable;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * (Test)实体类
 *
 * @author xiaoyp
 * @since 2020-03-02 15:36:28
 */

@Data
@Accessors(chain = true)
public class DemoSearch implements Serializable {
    private static final long serialVersionUID = -31991408252736647L;
    
    /**
    * 主键id
    */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
    * 姓名
    */
    private String name;
    /**
    * 年龄
    */
    private Long age;
    /**
    * 邮箱
    */
    private String email;
}